package mp

import (
	"context"
	pb "git.mycaigou.com/gfyx/micro-gfyx-mp-api/proto/micro_gfyx_user_service_proto/micro-gfyx-user-service"
)

type MpUserServiceIface interface {
	// MpLogin 获取小程序openid信息
	MpLogin(ctx context.Context, code string) (*MPLoginInfo, error)
	// GetMpAccessToken 获取accession
	GetMpAccessToken(ctx context.Context) (ak *pb.GetAccessTokenResponse, err error)
	CleanMpAccessToken(ctx context.Context) error
	// GetMpMobile 获取手机号
	GetMpMobile(ctx context.Context, mobileCode string, encryptedData string, iv string, sessionKey string) (string, error)
}
